.icon-select-container {
  display: flex;
  align-items: center;
}

.icon-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-card:hover {
  border-color: #1890ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.icon-card.selected {
  border-color: #1890ff;
  background-color: #e6f7ff;
}

.icon-card .ant-card-body {
  padding: 12px 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 图标容器 - 统一大小 */
.icon-card .icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.icon-card .icon-container svg {
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 1;
}

/* 图标名称样式 */
.icon-card .icon-name {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 自定义滚动条 */
.icon-select-container ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.icon-select-container ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.icon-select-container ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.icon-select-container ::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 搜索框样式 */
.icon-select-search {
  margin-bottom: 16px;
}

/* Tab 标签样式 */
.icon-select-tabs .ant-tabs-tab {
  font-size: 14px;
}

/* 图标网格布局 */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-height: 450px;
  overflow-y: auto;
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .icon-card {
    height: 90px;
  }

  .icon-card .icon-container {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .icon-card .icon-container svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }

  .icon-card .icon-name {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .icon-card {
    height: 80px;
  }

  .icon-card .ant-card-body {
    padding: 8px 4px;
  }

  .icon-card .icon-container {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .icon-card .icon-container svg {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .icon-card .icon-name {
    font-size: 9px;
  }
}

/* 特殊图标调整 - 确保所有图标在容器内居中显示 */
.icon-card .icon-container .anticon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 模态框内容区域滚动优化 */
.icon-select-modal .ant-modal-body {
  padding: 0;
}

.icon-select-content {
  padding: 20px;
}

/* Tab 内容区域优化 */
.icon-select-tabs .ant-tabs-content {
  padding: 16px 0 0 0;
}

.icon-select-tabs .ant-tabs-content-holder {
  margin: 0;
}

/* 空状态样式 */
.icon-select-empty {
  padding: 60px 0;
  text-align: center;
}

/* 加载状态样式 */
.icon-select-loading {
  padding: 60px 0;
  text-align: center;
}